package cn.tedu.study.videomodel.mapper;

import cn.tedu.study.videomodel.pojo.entity.Video;
import cn.tedu.study.videomodel.pojo.vo.ListContentVO;
import cn.tedu.study.videomodel.pojo.vo.ListVideoDetailVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VideoMapper {
    int insert(Video video);

    void deleteById(Integer id);

    int updateById(Video video);

    List<ListContentVO> selectListContent(Integer id);

    List<ListVideoDetailVO> ListVideoDetailByUserId(Integer userId);
}
